Writing Your First Dialogue
The most basic dialogue is just a string of text:Adding Character Names
To specify who is speaking, include a character name before a colon:Variable Character Names
If a character’s name is based on a variable (like player-chosen names), you can use double curlies:Multiple Lines
Lines of dialogue are written one after another:BBCode Formatting
You can enhance your dialogue with BBCode. Dialogue Manager supports all of Godot’sRichTextLabel BBCode tags:
Special BBCode Tags
Dialogue Manager provides several additional BBCode tags:[wait] - Pause dialogue typing
[wait] - Pause dialogue typing
Wait for seconds:Wait for input action:Wait for any of multiple actions:Wait for any action:
[speed] - Change typing speed
[speed] - Change typing speed
Multiply the default typing speed by a number:
[next] - Auto-continue dialogue
[next] - Auto-continue dialogue
Wait for specific seconds:Auto-calculate based on text length:
[[Random text]] - Pick random text inline
[[Random text]] - Pick random text inline
Use double square brackets to pick one option at random within dialogue:Each time the line is displayed, one random option will be chosen.
Complete Example
Here’s a complete example combining multiple features:All BBCode tags must be properly closed with their corresponding closing tag (e.g.,
[b]text[/b]), except for the special Dialogue Manager tags like [wait], [speed], and [next].Next Steps
Now that you understand basic dialogue, you can:- Add responses and branching for player choices
- Use variables and tags to make dialogue dynamic
- Learn about labels and jumps to control dialogue flow